/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import entity.Material;
import entity.MaterialFacade;
import entity.MaterialFacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;

/**
 *
 * @author Bryan Valencia
 */
@Named(value = "Material")
@RequestScoped
public class MaterialManagedBean {
    
    @EJB
    private MaterialFacadeLocal materialFacade = new MaterialFacade();    
    private List ltMateriales;
    private entity.Material material = new Material();

    /**
     * Creates a new instance of MaterialManagedBean
     */
    public MaterialManagedBean() {
    }

    public List getLtMateriales() {
        return ltMateriales = materialFacade.findAll();
    }
    
    
    
}
